﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace IGGWindowApp.Panels
{
    public partial class PanelStatus : UserControl
    {
        public event EventHandler DebugStarted;

        public PanelStatus()
        {
            InitializeComponent();
            //this.newsTicker.Text = "Buster Olney : If Matt Wieters wants to manage after his playing days are over, he'd transition easily. Similar potential as Joe Girardi had, as a player.";
        }

        private void button1_Click(object sender, EventArgs e)
        {
            DebugStarted(this, null);
        }

        public void SetData(string tickertext)
        {
            if (newsTicker.Text == "Empty")
            {
                newsTicker.Text = tickertext;
                newsTicker.Visible = true;
            }
            else
            {
                newsTicker.NextText = tickertext;
            }
        }
    }
}
